{* Smarty *}

	<img src="img/welcome.png" style="padding:6;">
	<br>
	<div class="text_big"  style="position:relative; padding:0 0 0 6; margin:0 0 -3 0;">Your Account</div>
	<img src="img/line_big.gif" style="padding:0 0 0 6;" >

   <table align="center" id="content_text">
        <tr>                           
                <td colspan="2" align="center">
              <br><span style="background-color: #4094D7; color: #ffffff; padding: 6px; font-family: verdana; font-size: 12px; text-align: left; font-weight:lighter;">Wish List :: <b>{$acount.client_name}</b></span>
            </td>
        </tr>

        <tr>
                <td colspan="2" align="center">
              {$msg_box}
            </td>
        </tr>

    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="90%">
    <tr valign="top">
	<td style="padding:0 0 0 5;">
                {include file="../include/facePlugins/ccplugin/tpl/acc_left_menu.tpl.php"}
	</td>
    <td width1="100%" align="center" id="content_text">


            
                    <form action="{geturl plugin=_this method=null params="event=recalculate"}" method="POST">                                      
                    <table id="wish" width1="100%" cellpadding="1" border="0" cl1ass="bordered_2" class="list">

                    <tr class="total">
                        <th>#</th>
                        <th>Image</th>
                        <th width="40%">Product Name</th>
                        <th>Price</th>
                        <th>Qty</th>
						<th>In stock</th>
                        <th >SubTotal</th>
                        <th >*</th>
                    </tr>
{if empty($wish_list) || !count($wish_list)}
                                    <tr class="light">
                        <td>&nbsp;</td>
                        <td colspan="7" height="40">
                            <b>No items collected in the wish list yet</b>
                        </td>
                    </tr>
{else}

    {foreach name="cart" from=$wish_list key=id item=item}
    
					<tr class="{cycle values='dark,light' advance=true}">
                        <td>{$smarty.foreach.cart.iteration}</td>
                        <td><a href="{$host}?path=catalogpage&page=view_details&pid={$id}">{$item.thumbnail}</a></td>
                        <td align="center"><a href="{$host}?path=catalogpage&page=view_details&pid={$id}">{$item.title}</a></td>
                        <td align="center">${$item.price}</td>
                        <td align="center"><input type="text" class="input_1" name="qty[{$id}]" value="{$item.qty}" style="width:22px;"></td>
						<td align="center">{if $item.qty_on_stock!=""}{$item.qty_on_stock}{else}0{/if}</td>
                        <td align="center">${$item.price*$item.qty|string_format:"%.2f"}</td>
                        <td align="center" nowrap style="padding:3;">
                            {if $item.qty_on_stock >= $item.qty}
                                <a title="Push To Cart !" href="{geturl plugin="ccontrl" method="null" params="page=view_wish_list&pid="}{$id}&event=buy" style="text-decoration: none;">
                                	<img border=0 src="img/btn_tocart.gif">
                                </a>
                            {else}
                                <a title="Out of stock ! (Ask question when goods appear in stock)" href="?path=staticpage&page=contact_us" style="text-decoration: none;">
                                    <img border=0 src="img/btn_tocart.gif">
                                </a>
                            {/if}
							<br><br>
							<a title="remove" href="{geturl plugin="ccontrl" method="null" params="page=view_wish_list&pid="}{$id}&event=del" style="text-decoration: none;">
                                <img  border=0 src="img/delete_icon.jpg">
                            </a>
                        </td>
                    </tr>
	{/foreach}
                                <tr class="">
                        <td> &nbsp;
                        </td>
                    </tr>
                    <tr class="total">
                        <td></td>
                        <td></td>
                        <td></td>
						<td  align="left" colspan="2"><input type="submit" value="Recalculate" class="button" /></td>
                        <td align="right" >Total: </td>
                        <td align="center">${$price|string_format:"%.2f"}</td>
                        
                    </tr>
{/if}                                        
                                    </table>
                    </form>
                    
                


    </td>
    </tr>
    </table>


